package com.augmented.jellybean.util;

import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;

import android.os.AsyncTask;

public class DealParser extends AsyncTask<String, Void, Document> {

	private Exception exception;
	private Document doc;
	protected void onPostExecute(Document doc) {
		// nothing!
	}
	
	@Override
	protected Document doInBackground(String... params) {
		try {
			String url = new String(params[0]);
			doc = Jsoup.connect(url).get();
		} catch (Exception e) {
			this.exception = e;
			return null;
		}
		return doc;
	}

}
